package com.liangzhong.constants
{
	import com.liangzhong.model.playerCenter.PlayerCenterDataConstant;

	/**
	 * 相关俱乐部常量 
	 * @author Administrator
	 * 
	 */	
	public class ClubConst
	{
		
		/**
		 *国家英国 1 
		 */
		public static const COUNTRY_ENGLAND:int = 1;
		/**
		 *西班牙2 
		 */
		public static const COUNTRY_SPAIN:int = 2;
		/**
		 *法国 3
		 */
		public static const COUNTRY_FRANCE:int = 3;
		/**
		 *德国4 
		 */
		public static const COUNTRY_GERMANY:int = 4;
		/**
		 *意大利 5
		 */
		public static const COUNTRY_ITALY:int = 5;
		/**
		 *中国 6
		 */
		public static const COUNTRY_CHAIN:int = 6;
		/**
		 * 亚洲1
		 */
		public static const ASIA:int = 1;
		/**
		 *非洲 3
		 */
		public  static const AFRICA:int = 3;
		/**
		 *美洲  2
		 */
		public  static const AMERICA:int = 2;
		/**
		 *欧洲  4
		 */
		public static const EUROPE:int = 4;
		/**
		 *国家转换 
		 * @param $id
		 * @return 
		 * 
		 */
		public static  function countryToString($id:int):String
		{
			switch($id)
			{
				case ClubConst.COUNTRY_ENGLAND:
					return "英国";
					break;
				case ClubConst.COUNTRY_SPAIN:
					return "西班牙";
					break;
				case ClubConst.COUNTRY_FRANCE:
					return "法国";
					break;
				case ClubConst.COUNTRY_GERMANY:
					return "德国";
					break;
				case ClubConst.COUNTRY_ITALY:
					return "意大利";
					break;
				case ClubConst.COUNTRY_CHAIN:
					return "中国";
					break;
			}
			return "：";
		}
		
		/**
		 *球员位置 
		 * @param $player
		 * @return 
		 * 
		 */
		public static function playerPlayer($player:int):String
		{
			switch($player)
			{
				case PlayerConst.PLAYERPLAYER_GK:
					return "守门员";
				case PlayerConst.PLAYERPLAYER_DF:
					return "后卫";
				case PlayerConst.PLAYERPLAYER_MF:
					return "中场";
				case PlayerConst.PLAYERPLAYER_FW:
					return "前锋";
				case PlayerConst.PLAYERPLAYER_ALL:
					return "所有球员";
			}
			return "所有球员";
		}
		/**
		 *  转换球员位置
		 * 
		 */
		public static  function turnPlace($place:int):String
		{
			switch($place)
			{
				case PlayerCenterDataConstant.GK_PLACE:
					return "GK";
					break;
				case PlayerCenterDataConstant.DF_PLACE:
					return "DF";
					break;
				case PlayerCenterDataConstant.MF_PLACE:
					return "MF";
					break;
				case PlayerCenterDataConstant.FW_PLACE:
					return"FW";
					break;
				default:
					return "";
			}
			return "";
		}
		
		/**
		 * 国家的描述
		 * 
		 */
		public static function nationDes($value:int):String
		{
			switch($value)
			{
				case ClubConst.COUNTRY_ENGLAND:
					return "<font color = '#00FF00'>全队进攻+3，速度+3！\n欧洲知名球星的探索几率增加10%，友好度+10%！<\font>";
					break;
				case ClubConst.COUNTRY_SPAIN:
					return "<font color = '#00FF00'>全队控球+5!\n南美知名球星探索几率增加10%，友好度+10%！<\font>";
					break;
				case ClubConst.COUNTRY_FRANCE:
					return "<font color = '#00FF00'>全队控球+3，抢断+2!\n非洲知名球星探索几率增加10%，友好度+10%！<\font>";
					break;
				case ClubConst.COUNTRY_GERMANY:
					return "<font color = '#00FF00'>全队防守+1\n 全队力量+3！\n所有球星友好度+8%！<\font>";
					break;
				case ClubConst.COUNTRY_ITALY:
					return "<font color = '#00FF00'>全队防守+3，力量+2！\n所有球星探索几率增加5%！<\font>";
					break;
				case ClubConst.COUNTRY_CHAIN:
					return "<font color = '#00FF00'>所有球星好感度增加15%\n所有球星探索概率增加15%！<\font>";
					break;
			}
			return "：";
		}
		
		/**
		 *成色转最大进度 
		 * 
		 */
		public static function colorToPro($value:int):int
		{
			switch($value)
			{
				case 1:
				case 2:
				case 3:
				case 4:
//					return 100;
				case 5:
//					return 110;
				case 6:
//					return 130;
				case 7:
					return 100;
				case 8:
					return 115;
					
			}
			return 100;
		}
		
		/**
		 * 球员退役获得声望 
		 * @param $value
		 * 
		 */
		public static function playerRetireForReputation($value:int):int
		{
			switch($value)
			{
				case 1:
					return 5;
					break;
				case 2:
					return 10
					break;
				case 3:
					return 30;
					break;
				case 4:
					return 60;
					break;
				case 5:
					return 200;
					break;
				case 6:
					return 12000;
					break;
				case 7:
					return 180000;
					break;
			}
			return 10;
		}
	}
}